<?php
/**
 * --------------------------------------------------------------------
 * MCore精简框架
 * 作者：阿枫，QQ：52037872，Email：support@mdeve.com
 * --------------------------------------------------------------------
 *
 * SVN revision information:
 * @version $Revision: 1 $:
 * @author  $Author: zy $:
 * @date      $Date: 2017-03-10 21:12:21 +0800 (星期五, 10 三月 2017) $:
 */

class _ExampleModuleClass extends _module_interface {


    function install()
    {
        return true;
    }

    function uninstall($retain_data=true)
    {
        return true;
    }

    function manage_menus()
    {
        return array(
            array("id" => "19990", "pid" => 0, "name" => "example主菜单", "icon" => "registered", "m" => "", "a" => "", "args" => "", "page" => 1, "sort" => "999"),
            array("id" => "19991", "pid" => 19990, "name" => "example二级菜单1", "icon" => "star", "m" => "example", "a" => "test1", "args" => "", "page" => 1, "sort" => "100"),
            array("id" => "19992", "pid" => 19990, "name" => "example二级菜单2", "icon" => "star-half-empty", "m" => "", "a" => "", "args" => "", "page" => 1, "sort" => "100"),
            array("id" => "19993", "pid" => 19992, "name" => "example三级菜单1", "icon" => "sun-o", "m" => "example", "a" => "test2", "args" => "", "page" => 1, "sort" => "100"),
            array("id" => "19994", "pid" => 19992, "name" => "example三级菜单2", "icon" => "support", "m" => "example", "a" => "test3", "args" => "", "page" => 1, "sort" => "100"),
            array("id" => "19995", "pid" => 19992, "name" => "example三级菜单3", "icon" => "thumbs-up", "m" => "example", "a" => "test4", "args" => "", "page" => 1, "sort" => "100"),
        );
    }

    function initialization()
    {
        module_add_scripts("manage_index_proc", "example_manage_index_proc();");

        function example_manage_index_proc() {
            global $m, $f;

            if($m == "example") {
                $f = dirname(__FILE__). "/example.module.php";
            }
        }
    }

    function intro(){
        return "测试模板";
    }

    function author() {
        return "阿枫 QQ:52037872 Email:support@mdeve.com";
    }

    function version() {
        return "0.1 Beta";
    }

}